#include <iostream>
using namespace std;

int main() {
    int n;
    cin >> n;

    int left_count = 0, right_count = 0;

    for (int i = 0; i < n; ++i) {
        int x, y;
        cin >> x >> y;
        if (x < 0)
            left_count++;
        else
            right_count++;
    }

    // 如果全在一边，或者只有一边有一个点，都可以删除那个点
    if (left_count == 0 || right_count == 0 ||
        left_count == 1 || right_count == 1) {
        cout << "Yes" << endl;
    } else {
        cout << "No" << endl;
    }

    return 0;
}